import ProtoBrowser from "@/components/protoBrowser";
import NHVideo from "@/components/NHVideo";
import { useState } from "react";
import { defaultVideoURL } from "@/libs/static";

const HomeBrowser = () => {
  // 视频展示浏览器url
  const [videoBrowserUrlValue, setVideoBrowserUrlValue] =
    useState("xxx.xxx.xxx");

  // 浏览器 url onInput
  const urlOnInput = (value) => {
    setVideoBrowserUrlValue(value);
  };

  return (
    <>
      <ProtoBrowser urlValue={videoBrowserUrlValue} urlInputChange={urlOnInput}>
        <NHVideo
          width={642}
          height={360}
          url={defaultVideoURL}
          autoPlay={true}
          radius={0}
          shadow={""}
        />
      </ProtoBrowser>
    </>
  );
};

export default HomeBrowser;
